package com.tvunetworks.center.user.mapper;

import com.tvunetworks.center.common.model.dto.user.UserFeatureDTO;
import com.tvunetworks.center.user.model.UserRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * @program:
 * @description:
 * @author HenryChen
 * @create: 5/29/2019 12:17 PM
 **/
public interface UserRoleMapper extends Mapper<UserRole> {
    /**
     *
     * @param userId userId
     * @return List
     */
    List<UserFeatureDTO> listUserRole(String userId);

    /**
     *
     * @param userId userId
     * @return List
     */
    List<UserRole> selectUserRoleByUserId(String userId);

    /**
     *
     * @param userIds userIds
     * @param feature feature
     */
    void removeUserRole(@Param("userIds") List<String> userIds, @Param("feature") String feature);
}
